<?php
require_once("../config.php"); 
require_once("../model/DB.php");
require_once("../model/User.php");
$parent = User::getUser('id',$_POST['id']);

list($parent[0]['f_contact'],$parent[0]['m_contact']) = split('[,]',$parent[0]['contact']);
list($parent[0]['f_realname'],$parent[0]['m_realname']) = split('[,]',$parent[0]['realname']);

print json_encode($parent);
?>